package com.fudan.gamestore.pojo;

public class CartItem {
    private Integer cartItemId;
    private Integer gameId;
    private Integer userId;
    private Game game;

    public CartItem() {
    }

    public CartItem(Integer cartItemId, Integer gameId, Integer userId, Game game) {
        this.cartItemId = cartItemId;
        this.gameId = gameId;
        this.userId = userId;
        this.game = game;
    }

    public Integer getCartItemId() {
        return cartItemId;
    }

    public void setCartItemId(Integer cartItemId) {
        this.cartItemId = cartItemId;
    }

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Game getGame() {
        return game;
    }

    public void setGame(Game game) {
        this.game = game;
    }

    @Override
    public String toString() {
        return "CartItem{" +
                "cartItemId=" + cartItemId +
                ", gameId=" + gameId +
                ", userId=" + userId +
                ", game=" + game +
                '}';
    }
}
